package com.eunion.web.admin.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 角色权限关联
 */
@Entity
@Table(name = "admin_role_auth")
public class AdminRoleAuth implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;

    /**
     * 权限代码
     */
    @Column(name = "auth_code")
    private String authCode;

    /**
     * 角色代码
     */
    @Column(name = "role_code")
    private String roleCode;

    public AdminRoleAuth() {
    }

    public AdminRoleAuth(String authCode, String roleCode) {
        super();
        this.authCode = authCode;
        this.roleCode = roleCode;
    }

    public AdminRoleAuth(int id, String authCode, String roleCode) {
        super();
        this.id = id;
        this.authCode = authCode;
        this.roleCode = roleCode;
    }

    public int getId() {
        return this.id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAuthCode() {
        return this.authCode;
    }

    public void setAuthCode(String authCode) {
        this.authCode = authCode;
    }

    public String getRoleCode() {
        return this.roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

}
